package com.tang.service.logic.impl;

import com.tang.entity.CarInfo;
import com.tang.service.logic.BaseLogic;

import java.util.Date;

/**
 * 车辆是否过期筛选
 * 
 * @author Tang
 */
public class CarOverdueFilter extends BaseLogic {

    @Override
    public Boolean matterValue(Long treeId, String userId, CarInfo carInfo) {
        return carInfo.getEndTime().before(new Date());
    }

}
